package com.cq.service;

import com.cq.pojo.Admin;

import java.util.List;

/**
 * @Author: 悠久的苍穹
 * @Date: 2021/1/9 20:08
 * @Description: 管理员Service层
 * @Version: 1.0
 */
public interface AdminService {
    Admin findAdminByPassword(String name,String password);

    Admin findAdminByPhone(String phone);

    int updateAdmin(Admin admin);

    Admin findAdminById(Integer id);

    int updatePassword(String password, Integer id);

    int getCount();

    List<Admin> findAllAdmin(int page, int limit);

    List<Admin> findAllAdminByRoleId(int role_id, int page, int limit);

    int addAdmin(Admin admin);

    Admin findAdminByName(String name);

    void deleteAdminById(int id);

    Admin findAdminByRoleId(Integer id);
}
